const Phb = function() {
    let subjects = [{
        name: "数学",
        score: 67
    }, {
        name: "英语",
        score: 87
    }, {
        name: "语文",
        score: 97
    }, ];
    let scores = subjects.reduce((pre, cur) => {
        return pre + cur.score;
    }, 0);
    console.log(" reduce实现数组累加功能");
    console.log("总成绩为", scores);

}
export default Phb